index.d.ts ➔ changeBitDepth   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 18
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 5
dl 0
loc 18
rs 10
c 0
b 0
f 0
1
// Type definitions for bitdepth 9.0
2
// Project: https://github.com/rochars/bitdepth
3
// Definitions by: Rafael S. Rocha <https://github.com/rochars>
4
// Definitions: https://github.com/rochars/bitdepth
5
6
/**
7
 * Change the bit depth of PCM samples.
8
 * @param {!Array|!TypedArray} samples The original samples.
9
 * @param {string} bithDepth The original bit depth.
10
 * @param {!TypedArray} newSamples The output array.
11
 * @param {string} targetBitDepth The target bit depth.
12
 * @throws {Error} If original or target bit depths are not valid.
13
 */
14
export function changeBitDepth(
15
	samples: ArrayLike<number>,
16
	bithDepth: string,
17
	newSamples: ArrayLike<number>,
18
	targetBitDepth: string): void;
19